package com.xuxueli.xxlrpc.serialize;

/**
 * @Author：YH
 * @Description：
 * @Date:Created in 2022/5/29 15:48
 */
public abstract class Serializer {
    /**
     * @Description:序列化
     **/
    public abstract <T> byte[] serialize(T obj);


    /**
     * @Description:反序列化
     **/
    public abstract <T> Object deserialize(byte[] bytes, Class<T> clazz);
}
